<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" id="html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>uupaa-event.js - uuClass.Event.handler</title>
<style type="text/css">@import url(../README.css);</style>
<style>#result { background-color: green; }</style>
<script type="text/javascript" src="http://uupaa-js-spinoff.googlecode.com/svn/trunk/uupaa-detect.js/uupaa-detect.mini.js"></script>
<script type="text/javascript" src="../uupaa-event.js"></script>
</head>
<body id="body">
<div id="clicktarget" style="border: 1px solid red">id="clicktarget"<br />click this area</div>
<div id="result"></div>
<script>
function boot() {
  var obj = {
    handleEvent: function(evt) {
      var e = document.getElementById("result");
      e.innerHTML = "click: " + evt.target.id;
    }
  };
  uu.event.attach(document, "click", obj);
}
window.onload = boot;
</script>
<pre class="eg" id="example">
  var obj = {
    <b>handleEvent</b>: function(evt) {
      var e = document.getElementById("result");
      e.innerHTML = "click: " + evt.target.id;
    }
  };
  <b>uu.event.attach</b>(document, "click", obj);
</pre>
</body></html>
